var main = function () {
    require(["jquery"], function ($) {
        var str = "1100110|1100110|0011000|0111100|0111100|0100100|0000000";
        var arr = str.split("|");
        var c = $("#c");
        for (var i = 0; i < arr.length; i++) {
            var item = arr[i];
            var list = $("<div style='margin-bottom: -2px;'></div>");
            for (var j = 0; j < item.length; j++) {
                var ui = "";
                if (item[j] == "1") {
                    ui = $("<div class='black'></div>")
                } else {
                    ui = $("<div class='white'></div>")
                }
                list.append(ui);
            }
            $("#root").append(list);
        }
    });
};
require(["../scripts/require.config"], main);
